// samsting : this file is auto create.

#include "Ecs/2014-05-26/DescribeHaVipsResponse.h"

namespace aliyun { namespace Ecs {

DescribeHaVipsResponse::DescribeHaVipsResponse() {
}

const std::vector<associatedInstance>& DescribeHaVipsResponse::HaVip::GetAssociatedInstances(void) const {
  return AssociatedInstances_;
}

const std::vector<associatedEipAddresse>& DescribeHaVipsResponse::HaVip::GetAssociatedEipAddresses(void) const {
  return AssociatedEipAddresses_;
}

const string& DescribeHaVipsResponse::HaVip::GetHaVipId(void) const {
  return HaVipId_;
}

const string& DescribeHaVipsResponse::HaVip::GetRegionId(void) const {
  return RegionId_;
}

const string& DescribeHaVipsResponse::HaVip::GetVpcId(void) const {
  return VpcId_;
}

const string& DescribeHaVipsResponse::HaVip::GetVSwitchId(void) const {
  return VSwitchId_;
}

const string& DescribeHaVipsResponse::HaVip::GetIpAddress(void) const {
  return IpAddress_;
}

const string& DescribeHaVipsResponse::HaVip::GetStatus(void) const {
  return Status_;
}

const string& DescribeHaVipsResponse::HaVip::GetMasterInstanceId(void) const {
  return MasterInstanceId_;
}

const string& DescribeHaVipsResponse::HaVip::GetDescription(void) const {
  return Description_;
}

const string& DescribeHaVipsResponse::HaVip::GetCreateTime(void) const {
  return CreateTime_;
}

const std::vector<DescribeHaVipsResponse::HaVip>& DescribeHaVipsResponse::GetHaVips(void) const {
  return HaVips_;
}

int DescribeHaVipsResponse::GetTotalCount(void) const {
  return TotalCount_;
}

int DescribeHaVipsResponse::GetPageNumber(void) const {
  return PageNumber_;
}

int DescribeHaVipsResponse::GetPageSize(void) const {
  return PageSize_;
}

const char* DescribeHaVipsResponse::BaseKey(void) {
  return "DescribeHaVipsResponse";
}

void DescribeHaVipsResponse::UnmarshallerMap(std::map<string, string>& response_map) {
  int HaVips__length = 0;
  UnmarshallerInt(HaVips__length, response_map, "DescribeHaVipsResponse.HaVips.Length");
  if(HaVips__length >= 0) {
    HaVips_.resize(HaVips__length);
    for(int i1 = 0; i1 < HaVips__length; i1++) {
      int HaVips_i1_AssociatedInstances__length = 0;
      UnmarshallerInt(HaVips_i1_AssociatedInstances__length, response_map, "DescribeHaVipsResponse.HaVips[+"+string_ValueOfInt(i1)+"].AssociatedInstances.Length");
      if(HaVips_i1_AssociatedInstances__length >= 0) {
        HaVips_[i1].AssociatedInstances_.resize(HaVips_i1_AssociatedInstances__length);
        for(int i2 = 0; i2 < HaVips_i1_AssociatedInstances__length; i2++) {
          UnmarshallerString(HaVips_[i1].AssociatedInstances_[i2], response_map, "DescribeHaVipsResponse.HaVips[+"+string_ValueOfInt(i1)+"].AssociatedInstances["+string_ValueOfInt(i2)+"]");
        } // for(int i2 = 0; i2 < HaVips_i1_AssociatedInstances__length; i2++) {
      } // if(HaVips_i1_AssociatedInstances__length >= 0) {

      int HaVips_i1_AssociatedEipAddresses__length = 0;
      UnmarshallerInt(HaVips_i1_AssociatedEipAddresses__length, response_map, "DescribeHaVipsResponse.HaVips[+"+string_ValueOfInt(i1)+"].AssociatedEipAddresses.Length");
      if(HaVips_i1_AssociatedEipAddresses__length >= 0) {
        HaVips_[i1].AssociatedEipAddresses_.resize(HaVips_i1_AssociatedEipAddresses__length);
        for(int i2 = 0; i2 < HaVips_i1_AssociatedEipAddresses__length; i2++) {
          UnmarshallerString(HaVips_[i1].AssociatedEipAddresses_[i2], response_map, "DescribeHaVipsResponse.HaVips[+"+string_ValueOfInt(i1)+"].AssociatedEipAddresses["+string_ValueOfInt(i2)+"]");
        } // for(int i2 = 0; i2 < HaVips_i1_AssociatedEipAddresses__length; i2++) {
      } // if(HaVips_i1_AssociatedEipAddresses__length >= 0) {

      UnmarshallerString(HaVips_[i1].HaVipId_, response_map, "DescribeHaVipsResponse.HaVips["+string_ValueOfInt(i1)+"].HaVipId");
      UnmarshallerString(HaVips_[i1].RegionId_, response_map, "DescribeHaVipsResponse.HaVips["+string_ValueOfInt(i1)+"].RegionId");
      UnmarshallerString(HaVips_[i1].VpcId_, response_map, "DescribeHaVipsResponse.HaVips["+string_ValueOfInt(i1)+"].VpcId");
      UnmarshallerString(HaVips_[i1].VSwitchId_, response_map, "DescribeHaVipsResponse.HaVips["+string_ValueOfInt(i1)+"].VSwitchId");
      UnmarshallerString(HaVips_[i1].IpAddress_, response_map, "DescribeHaVipsResponse.HaVips["+string_ValueOfInt(i1)+"].IpAddress");
      UnmarshallerString(HaVips_[i1].Status_, response_map, "DescribeHaVipsResponse.HaVips["+string_ValueOfInt(i1)+"].Status");
      UnmarshallerString(HaVips_[i1].MasterInstanceId_, response_map, "DescribeHaVipsResponse.HaVips["+string_ValueOfInt(i1)+"].MasterInstanceId");
      UnmarshallerString(HaVips_[i1].Description_, response_map, "DescribeHaVipsResponse.HaVips["+string_ValueOfInt(i1)+"].Description");
      UnmarshallerString(HaVips_[i1].CreateTime_, response_map, "DescribeHaVipsResponse.HaVips["+string_ValueOfInt(i1)+"].CreateTime");
    } // for(int i1 = 0; i1 < HaVips__length; i1++) {
  } // if(HaVips__length >= 0) {

  UnmarshallerInt(TotalCount_, response_map, "DescribeHaVipsResponse.TotalCount");
  UnmarshallerInt(PageNumber_, response_map, "DescribeHaVipsResponse.PageNumber");
  UnmarshallerInt(PageSize_, response_map, "DescribeHaVipsResponse.PageSize");
}


} } // namespace aliyun { namespace Ecs {

// end of file 
